#ifndef SDLCANVAS_H_
#define SDLCANVAS_H_

#include "GameState.h"

namespace catan
{

class SDLCanvas
{
public:
	SDLCanvas(GameState &gameState);
	virtual ~SDLCanvas();
	bool resizeWindow(int width, int height);
	bool updateViewport();
	int getWidth() const;
	int getHeight() const;
	float getWindowUnitWidth() const;
	float getWindowUnitHeight() const;
	float getClientUnitWidth() const;
	float getClientUnitHeight() const;
	
	
private:
	static const float CLIENT_UNIT_WIDTH;
	static const float CLIENT_UNIT_HEIGHT;
	int videoFlags;
	int width;
	int height;
	float windowUnitWidth;
	float windowUnitHeight;
	GameState *gameStateRef;
};

}

#endif /*SDLCANVAS_H_*/
